<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: datamath   (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>datamath&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_datamath.html" title="datamath">datamath</a>
                
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                   
                    <h3>模块：datamath
                    


                    </h3>
                    <div class="description summary">
                        YAHOO.widget.DateMath用做一些简单的日期转换。这个类是用来添加、减去、比较日期的公用类。
                    </div>



                <div class="yui-gc">
                    <div class="yui-u first">

                            <p>本模块包含以下类：</p>
                            <script>
                            //var YUI_CLASS_LIST = [{"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "YAHOO.widget.DateMath\u7528\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u65e5\u671f\u8f6c\u6362\u3002\u8fd9\u4e2a\u7c7b\u662f\u7528\u6765\u6dfb\u52a0\u3001\u51cf\u53bb\u3001\u6bd4\u8f83\u65e5\u671f\u7684\u516c\u7528\u7c7b\u3002", "guessedname": "DateMath", "name": "YAHOO.widget.DateMath"}];
                            </script>
                            <div id="splash_classList">
                                <ul>
                                    <li><a href="YAHOO.widget.DateMath.html" title="YAHOO.widget.DateMath" id="class_0">DateMath</a></li>
                                </ul>
                            </div>
                    </div>
                    <div class="yui-u">

                        </div>
                </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class="selected"><a href="module_datamath.html" title="datamath">datamath</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.widget.DateMath.html" title="YAHOO.widget.DateMath">YAHOO.widget.DateMath</a></li>
                        </ul>
                    </div>






            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.widget.DateMath.html#method_add", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "add"}, {"url": "YAHOO.widget.DateMath.html#method_after", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "after"}, {"url": "YAHOO.widget.DateMath.html#method_before", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "before"}, {"url": "YAHOO.widget.DateMath.html#method_between", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "between"}, {"url": "YAHOO.widget.DateMath.html#method_clearTime", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "clearTime"}, {"url": "YAHOO.widget.DateMath.html#property_DAY", "access": "", "host": "YAHOO.widget.DateMath", "type": "property", "name": "DAY"}, {"url": "YAHOO.widget.DateMath.html#method_findMonthEnd", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "findMonthEnd"}, {"url": "YAHOO.widget.DateMath.html#method_findMonthStart", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "findMonthStart"}, {"url": "YAHOO.widget.DateMath.html#method_getDate", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "getDate"}, {"url": "YAHOO.widget.DateMath.html#method_getDayOffset", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "getDayOffset"}, {"url": "YAHOO.widget.DateMath.html#method_getFirstDayOfWeek", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "getFirstDayOfWeek"}, {"url": "YAHOO.widget.DateMath.html#method_getJan1", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "getJan1"}, {"url": "YAHOO.widget.DateMath.html#method_getWeekNumber", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "getWeekNumber"}, {"url": "YAHOO.widget.DateMath.html#method_isMonthOverlapWeek", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "isMonthOverlapWeek"}, {"url": "YAHOO.widget.DateMath.html#method_isYearOverlapWeek", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "isYearOverlapWeek"}, {"url": "YAHOO.widget.DateMath.html#property_MONTH", "access": "", "host": "YAHOO.widget.DateMath", "type": "property", "name": "MONTH"}, {"url": "YAHOO.widget.DateMath.html#property_ONE_DAY_MS", "access": "", "host": "YAHOO.widget.DateMath", "type": "property", "name": "ONE_DAY_MS"}, {"url": "YAHOO.widget.DateMath.html#method_subtract", "access": "", "host": "YAHOO.widget.DateMath", "type": "method", "name": "subtract"}, {"url": "YAHOO.widget.DateMath.html#property_WEEK", "access": "", "host": "YAHOO.widget.DateMath", "type": "property", "name": "WEEK"}, {"url": "YAHOO.widget.DateMath.html#property_WEEK_ONE_JAN_DATE", "access": "", "host": "YAHOO.widget.DateMath", "type": "property", "name": "WEEK_ONE_JAN_DATE"}, {"url": "YAHOO.widget.DateMath.html#property_YEAR", "access": "", "host": "YAHOO.widget.DateMath", "type": "property", "name": "YEAR"}];
</script>
</body>
</html>
